home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19971216-19980424
/
000069_news@newsmaster….columbia.edu _Thu Jan 8 12:28:14 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-04-22
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA16426
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 8 Jan 1998 12:28:14 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA19444
for kermit.misc@watsun; Thu, 8 Jan 1998 12:28:13 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Unix login
Date: 8 Jan 1998 17:28:10 GMT
Organization: Columbia University
Lines: 35
Message-ID: <6932ba$8ei$1@apakabar.cc.columbia.edu>
References: <rkqykxamezqo.pminews@psr>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8239
In article <rkqykxamezqo.pminews@psr>,
Richard Kimber <poa02@cc.keele.ac.uk> wrote:
: I am experimenting with Kermit for OS/2 and am trying to set up an automated
: login to a unix machine. However, after accepting my password the machine
: presents me with a crude menu, asking me to type 1, 2, or 3 , depending on
: which machine I want.
:
: I don't seem to have found the correct way of dealing with this. The best I
: can get is a hang of the Kermit session while being invited to input a
: number.
:
: I am able to connect OK by typing in my username, password, and menu choice
: by hand.
:
: I should be grateful for some pointers.
:
Did you read the manual chapters on script programming? They contain
examples of how to do this. Very briefly:
1. Collect a session log so you can see the exact character stream.
2. Identify the final character string that is sent in the act of
putting up the menu.
3. Execute an INPUT command for that string, including any control
characters or escape sequences it might contain.
4. After the INPUT command completes successfully (if it does), include
a PAUSE 1 command just for safety.
5. Send your menu selection, e.g. "output 3\13".
Then add a command to do whatever you want to do next, e.g. "connect".
- Frank